package containers;
import java.util.*;
import net.mindview.util.*;
import static net.mindview.util.Print.*;
public class ReadOnly {
    static Collection<String> data=new ArrayList<String>(Countries.names(6));

    public static void main(String[] args) {
        Collection<String> c=Collections.unmodifiableList(new ArrayList<String>(data));
        print(c);
        List<String> a=Collections.unmodifiableList(new ArrayList<String>(data));
        ListIterator<String> lit=a.listIterator();
        print(lit.next());
        Set<String> s=Collections.unmodifiableSet(new HashSet<String>(data));
        print(s);
        Set<String> ss=Collections.unmodifiableSet(new TreeSet<String>(data));
        Map<String,String> m=Collections.unmodifiableMap(new HashMap<String,String>(Countries.capitals(6)));
        print(m);
        Map<String,String> sm=Collections.unmodifiableSortedMap(new TreeMap<String,String>(Countries.capitals(6)));

    }
}
